#ifndef PYHP_DB_MYSQL
#define PYHP_DB_MYSQL

/**
 * @file pyhp_mysql.h
 * pyhp database mysql support
 */

#include <Python.h>

PyObject *pyhp_mysql_connect(char *where, char const *user, char const *pass);
PyObject *pyhp_mysql_exec(void *mysql, PyObject *statement);
PyObject *pyhp_mysql_query(void *mysql, PyObject *statement);
void pyhp_mysql_close(void *mysql);

struct pyhp_mysql_result;
PyObject *pyhp_mysql_fetch_all(struct pyhp_mysql_result *self, PyObject *args);
PyObject *pyhp_mysql_rcount(struct pyhp_mysql_result *self, PyObject *args);

#endif

